<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
    <link rel="stylesheet" href="/css/goods/goods-add.css">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/ztree/css/metroStyle.css">
    <link rel="stylesheet" href="/css/welcome/welcome.css">
    <script src="/layui/layui.js"></script>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/ztree/js/jquery.ztree.core.min.js"></script>
    <script src="/ztree/js/jquery.ztree.excheck.min.js"></script>
</head>
<body>
<div id="box">
    <div id="box-body" style="margin-top: 20px">
        <div id="box-body-body">
            <form class="layui-form" id="form" lay-filter="form">
                <div class="layui-form-item">
                    <div class="layui-block">
                        <label class="layui-form-label">商品分类: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" name="title" required lay-verify="required" disabled="disabled"/>
                            <a href="javascript:findType();"><img src="/images/icon1.gif"/></a>
                            <input type="hidden" name="title">
                            <input type="hidden" name="categroyId">
                        </div>

                    </div>
                    <div id="sort" style="display: none" class="layui-block">
                        <div class="layui-input-block">
                            <p style="color: #CDCDCF">你当前选择的商品类型是：<span id="type" style="color:#da3553;"></span></p>
                        </div>
                    </div>
                    <div class="layui-block">
                        <label class="layui-form-label">商品名称: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required" name="productName"/>
                        </div>
                    </div>
                    <div class="layui-block" id="images">
                        <label class="layui-form-label">商品图片: </label>
                        <div class="layui-upload-list" id="image" style="margin-left: 110px;width: 305px">
                            <img id="test" src="/images/uploads.jpg" height="98px" width="98px"
                                 class="layui-upload-img uploadImgPreView" style="border: 1px solid #ccc;">
                        </div>
                        <input type="text" class="layui-hide" required lay-verify="required" name="mainImage"/>
                    </div>
                    <div class="layui-block" id="tx1">
                        <label class="layui-form-label">商品介绍: </label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" name="productDescription" required lay-verify="required" style=" resize: none;"
                                      placeholder="请输入内容"></textarea>
                        </div>
                    </div>
                    <div class="layui-block" id="tx2">
                        <label class="layui-form-label">商品标签: </label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" name="productLabel" required lay-verify="required" style=" resize: none;"
                                      placeholder="请输入标签"></textarea>
                        </div>
                    </div>
                    <div class="layui-block">
                        <label class="layui-form-label">商品货号: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required|number" name="productCode"/>
                        </div>
                    </div>
                    <div class="layui-block">
                        <label class="layui-form-label">商品售价: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required|number" name="originalpriceProduct"/>
                        </div>
                    </div>
                    <div class="layui-block">
                        <label class="layui-form-label">关键字: </label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input-inline" required lay-verify="required" name="searchKeywords"/>
                        </div>
                    </div>
                    <div class="layui-block" id="radio1">
                        <label class="layui-form-label">商品推荐: </label>
                        <div class="layui-input-block">
                            <input type="radio" name="recommend" value="2" title="新品" checked>
                            <input type="radio" name="recommend" value="3" title="推荐">
                        </div>
                    </div>
                    <div class="layui-block" id="radio2">
                        <label class="layui-form-label">可用优惠券: </label>
                        <div class="layui-input-block">
                            <input type="radio" name="discount" value="2" title="是" checked>
                            <input type="radio" name="discount" value="3" title="否">
                        </div>
                    </div>
                    <div class="layui-block" id="radio3">
                        <label class="layui-form-label">服务保证: </label>
                        <div class="layui-input-block">
                            <input type="radio" name="ensure" value="2" title="无忧退货" checked>
                            <input type="radio" name="ensure" value="3" title="快速退款">
                            <input type="radio" name="ensure" value="4" title="免费包邮">
                        </div>
                    </div>
                </div>
                <div id="box-body-dy">
                    <button type="submit" lay-submit class="layui-btn" id="submit">完成</button>
                </div>
                <input type="hidden" name="productSate" value="2">
                <input type="hidden" name="createId" value="">
            </form>
        </div>
    </div>
</div>
</body>
<script src="/js/goods/goods-add-open.js"></script>
</html>